import request from "@/utils/request.js";

const api_prefix = "/index";

export function findRegisterUserNum() {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/register/num`,
    method: "GET",
  });
}

export function findBusinessNum() {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/business/num`,
    method: "GET",
  });
}

export function findStoreNum() {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/store/num`,
    method: "GET",
  });
}

export function findGoodsNum() {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/goods/num`,
    method: "GET",
  });
}

export function findWeekdayData() {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/admin/weekday`,
    method: "GET",
  });
}

export function findBusinessWeekdayData(userId) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/business/weekday/${userId}`,
    method: "GET",
  });
}

export function findTotalOrderData() {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/order/total`,
    method: "GET",
  });
}

export function findWeekTotalOrderData() {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/week/total`,
    method: "GET",
  });
}

export function findThisYearData() {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/this/year`,
    method: "GET",
  });
}

export function findGoodsTotal(userId) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/goods/total/${userId}`,
    method: "GET",
  });
}

export function findTotalPrice(userId) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/price/total/${userId}`,
    method: "GET",
  });
}


export function findPineLineToal(userId) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/PineLine/total/${userId}`,
    method: "GET",
  });
}